<extend name="Public/base"/>

<block name="body">
	<div class="main-title">
		<h2>
			{$info['id']?'编辑':'新增'}微信设置

		</h2>
	</div>
	<form action="{:U()}" method="post" class="form-horizontal">

		<div class="form-item">
			<label class="item-label">标题<span class="check-tips">（备注用的只后台显示）</span></label>
			<div class="controls">
				<input type="text" style="height:30px;" class="text input-large" name="title" value="{$info.title|default=''}">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">关键字<span class="check-tips">（公众号输入的内容，多个逗号隔开 注：必须是英文状态下输入逗号）</span></label>
			<div class="controls">
				<input type="text" style="height:30px;" class="text input-large" name="keywords" value="{$info.keywords|default=''}">
			</div>
		</div>
        <div class="form-item">
            <label class="item-label">类型<span class="check-tips">（如果选择不匹配，关键字可为空）</span></label>
            <div class="controls">
                <select name="type">
                     <option <if condition="$info['type'] eq 1 "> selected  </if> value="1">准确匹配</option>
					 <option <if condition="$info['type'] eq 2 "> selected  </if> value="2">模糊匹配</option>
					 <option <if condition="$info['type'] eq 3 "> selected  </if> value="3">不匹配</option>
                </select>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">回复内容<span class="check-tips">（自动回复内容）</span></label>
            <div class="textarea input-large">
                <textarea name="content">{$info.content|default=''}</textarea>
            </div>
        </div>
		<div class="form-item">
			<label class="item-label">状态<span class="check-tips"></span></label>
			<div class="controls">
                <select name="status">
                    <option <if condition="$info['status'] eq 1 "> selected  </if> value="1">开启</option>
                    <option <if condition="$info['status'] eq 0 "> selected  </if> value="0">关闭</option>
                </select>
			</div>
		</div>
		<div class="form-item">
			<input type="hidden" name="id" value="{$info.id|default=''}">
			<button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
			<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</form>
</block>
<block name="script">
<script type="text/javascript" charset="utf-8">
	//导航高亮
	highlight_subnav('{:U('index')}');
</script>
</block>
